<div id="main">
    <div id="contents">
        <form method="post" name="filters">
            <fieldset>
                <legend>
                    <label sid="downlog.title1"></label>
                </legend>
                <div class="frame_tab_layer">
                    <table class="cmenutitle" width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td class="frame_tab_left">
                                <label sid="downlog.td5"></label>
                            </td>
                            <td class="frame_tab_right">
                                <select name="id178">
                                    <option sid="downlog.option1" value="1"></option>
                                    <option value="3" sid="downlog.option3"></option>
                                    <option value="4" sid="downlog.option4"></option>
                                    <option value="5" sid="downlog.option5"></option>
                                    <option value="6" sid="downlog.option6"></option>
                                    <option value="8" sid="downlog.option8"></option>
                                </select>
                                <span style="padding-left:30px;">&nbsp;</span>
                                <input type="hidden" value="4" name="fileid">
                                <input class="button" type="button" onclick="click930();disabled=true;" name="id930"
                                       sid="sbutton.down">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
            <fieldset>
                <legend>
                    <label sid="downlog.title2"></label>
                </legend>
                <div class="frame_tab_layer">
                    <table class="cmenutitle" width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr id="tr184">
                            <td class="frame_tab_left">
                                <label sid="downlog.td4"></label>
                            </td>
                            <td id="td184" class="frame_tab_right">
                                <input type="text" maxlength="17" size="15" name="id184">
                                <span id="msg184">&nbsp;</span>
                            </td>
                        </tr>
                        <tr id="tr183">
                            <td class="frame_tab_left">
                                <input type="hidden" value="1" name="downlog">
                                <span id="img183" class="errormsg">&nbsp;</span>
                                <label sid="downlog.td2"></label>
                            </td>
                            <td id="td183" class="frame_tab_right">
                                <input type="text" maxlength="17" size="15" name="id183">
                                <span id="msg183">&nbsp;</span>
                            </td>
                        </tr>
                        <tr id="tr182">
                            <td class="frame_tab_left">
                                <label sid="downlog.td3"></label>
                            </td>
                            <td id="td182" class="frame_tab_right">
                                <input type="text" maxlength="17" size="15" name="id182">
                                <span id="msg182">&nbsp;</span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>

            <div class="submitFooter">
                <script type="text/javascript">
                    var buttonInfo = submitFooterButton(1, 0);
                    $(".submitFooter").html(buttonInfo);
                </script>
            </div>
        </form>
    </div>
</div>
<br>
<div id="helpContainer">
    <div id="help">
        <div>
            <h2>
                <label sid="share.help"></label>
            </h2>
        </div>
         <div id="helpBody">
        <dl>

            <dt class="term">
                <label sid="downlog.td4"></label>
            </dt>
            <dd class="definition">
                <label sid="downlog.td4Tip"></label>
            </dd>
            <dt class="term">
                <label sid="downlog.td2"></label>
            </dt>
            <dd class="definition">
                <label sid="downlog.td2Tip"></label>
            </dd>
            <dt class="term">
                <label sid="downlog.td3"></label>
            </dt>
            <dd class="definition">
                <label sid="downlog.td3Tip"></label>
            </dd>
        </dl>
         </div>
    </div>
</div>


<script type="text/javascript">
/*    $(document).ready(function () {

        $("input[name='id183']").focus();
        var nonames = new Array('downlog', 'submit', 'reset', 'id930', 'fileid');
        var sendtext = getSendText(nonames);
        DataRequest("get_json", sendtext, function (data) {
            getResult(nonames, data);
        });

*//*        var gettext = "&id=16&tmp=" + Math.random();
        var dns = '';
        var url = modules["get_data"] + gettext;
        $.get(url, function (data) {
            var stat = $(data).find('rsp').attr("stat");
            if (stat == "fail") {
                $(data).find('Error').each(function () {
                    var code = $(this).attr('code');
                    if (code == 4) {
                        //show_message("err",msg.cannotModify1);
                        alert(msg.cannotModify1);
                    } else if (code == 5) {
                        gotologin();
                    }
                });
            } else {
                $(data).find("item").each(function () {
                    if ($(this).attr("id") == "16") {
                        dns = $(this).attr("value");
                    }
                });
            }
        });

        $("input:text").blur(function () {
            var names = new Array('id22', 'id23', 'id476', 'id477', 'id603', 'id601', 'id605', 'id184', 'id183');
            if (inputdomain(names, $(this).attr("name"))) {
                var thisvalue = $(this).val();
                if (checkDomain(thisvalue) && dns == "off") {
                    // show_message("err",msg.dns);
                    alert(msg.dns);
                }
            }
        });*//*

        $("[name=submit]").click(function () {
            $(".errormsg").html('');
            var settext = getSetText(nonames);
            settext = settext.replace(/\#/g, "%23");
            submitform(modules["set_data"], settext);
        });
    });


    function click930() {
        $.ajax({
            type:"POST",
            url:modules["log_download"] + "&id=" + $("input[name=fileid]").val() + '&tmp=' + Math.random(),
            dataType:"xml",
            error:function (xml) {
                gotologin();
            },
            success:function (xml) {
                var errorcode = $(xml).find('Error').attr('code');
                if (errorcode == '5') {
                    gotologin();
                } else {
                    $(xml).find('item').each(function () {
                        var downfilename = $(this).attr('value');
                        window.location.href = downfilename;
                    });
                }
            }
        });
    }*/
</script>

